package com.gccloud.design.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author guo.wang
 * @date 2021-07-04
 */
@Data
@ApiModel("API参数配置实体类")
@TableName("sd_api_param")
@Accessors(chain = true)
public class SdApiParamEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    /**
     * api标识
     */
    @ApiModelProperty("api标识")
    private Long apiId;

    /**
     * 参数类型
     */
    @ApiModelProperty("参数类型")
    private String paramType;

    /**
     * 模拟入参
     */
    @ApiModelProperty("模拟入参")
    private String mockInparam;

    /**
     * 入/出参模板
     */
    @ApiModelProperty("入/出参模板")
    private String paramTemplate;

    /**
     * 入/出参解析脚本模板
     */
    @ApiModelProperty("入/出参解析脚本模板")
    private String paramAnalyzeTemplate;

    /**
     * 分片标识
     */
    @ApiModelProperty("分片标识")
    private Integer shardingId;

}
